Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Collection<T> Class / ToArray Method


In This Topic
    ToArray Method (Collection<T>)
    In This Topic
    Copies the elements of the Collection<T> to a new array.
    Syntax
    'Declaration
     
    
    Public Function ToArray( _
       Optional ByVal direct As Boolean _
    ) As T()
    'Usage
     
    
    Dim instance As Collection(Of T)
    Dim direct As Boolean
    Dim value() As T
     
    value = instance.ToArray(direct)
    public T[] ToArray( 
       bool direct
    )

    Parameters

    direct

    Return Value

    An array containing copies of the elements of the Collection<T>.
    See Also